package com.rongke.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rongke.mapper.QuestionMapper;
import com.rongke.model.Question;
import com.rongke.service.QuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @QuestionServiceImpl
 * @ServiceImpl
 * @version : Ver 1.0
 */
@Service
public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> implements QuestionService {

    @Autowired
    private QuestionMapper questionMapper;

    /**
     * @根据条件查找
     * @param question
     * @return
     */
    @Override
    public List<Question> selectByCondition(Question question) {
        return questionMapper.selectByCondition(question);
    }
}
